// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 此处后端没有提供注释 GET /simulator/get */
export async function get(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseString>('/simulator/get', {
    method: 'GET',
    params: {
      ...params,
      queryParamEntity: undefined,
      ...params['queryParamEntity'],
    },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /simulator/random/string */
export async function getRandomString(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getRandomStringParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseString>('/simulator/random/string', {
    method: 'GET',
    params: {
      // length has a default value: 10
      length: '10',
      ...params,
    },
    ...(options || {}),
  });
}
